home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UTIL / DISKUTIL / FSCK / !QuickFix < prev    next >
Text File  |  1995-04-09  |  3KB  |  76 lines

  1. If you have a broken disc and you just want to fix it as fast as possible
  2. without reading all the fsck help files, this quick guide to the disc fix is
  3. for you.
  4.  
  5. You just have to search for your problem in the 'Problems' list and then read
  6. the corresponding solution in the 'Solutions' list. 
  7. If something goes wrong during the fix you should read all the other docs to
  8. search for more info and eventually contact the author.
  9.  
  10. After the fix, please read the "!SHAREWARE" file, it's important!
  11.  
  12. Remember that the programs 'fsck' and 'hardfix' can keep a logfile of what
  13. they print on the screen: if something goes wrong, the logfile can help the
  14. author to discover and fix the problem. To use the logfile option, add:
  15. "-l <filename>"   (where <filename> is the name of the logfile to create)
  16. to the 'fsck' and 'hardfix' command line.
  17.  
  18. Before using 'fsck' or 'hardfix' you should save the disc data to a file
  19. using:
  20. "hardfix -s <savefilename> <discname>"
  21. If something goes wrong during the fix you can always restore the map. See
  22. the file 'hard_help' for more informations about how to restore a saved file
  23. and why you should never do this!
  24.  
  25. In the examples below I assume that the broken disc is drive 4 on Filing
  26. System ADFS (like the internal A5000 IDE): when you have to use the command,
  27. change it to suit your configuration (eg. use IDEFS::5, SCSI::4, etc. instead
  28. of ADFS::4).
  29.  
  30.  
  31. Problems:
  32. 1) CheckMap reports "Map inconsistent with directory tree"
  33. 2) Some file cannot be loaded and deleted (the computer hangs)
  34. 3) A directory cannot be opened ("Broken directory" error)
  35. 4) Trying to create a new file on the disc causes a computer hang or some
  36.    strange error.
  37. 5) The disc cannot be opened/accessed ("Disc not understood - has it been
  38.    formatted?" error)   
  39.  
  40.  
  41. Solutions:
  42. 1) Use 'fsck' on the disc, for example:
  43.    "fsck -f ADFS::4"
  44.    If it asks you to create a directory called 'lost+found', reply 'y'.
  45.    When it finishes, look inside the 'lost+found' directory: load the files
  46.    and check inside the directories to see if there is something useful for
  47.    you. If you want to keep some of these files or directories, *copy* them to
  48.    another directory and *delete* them from 'lost+found'.
  49.    Then, try fsck again to see if the disc is fixed.
  50.  
  51. 2) Use 'eliminate' on that file, for example:
  52.    "eliminate ADFS::4.$.dir.file"
  53.    If you are sure of what you are doing (ie. you are eliminating the right
  54.    file!), reply 'y' to the question it asks you.
  55.    Now run 'fsck' as described above in Solution 1 to fix the disc that
  56.    should now be 'inconsistent'.
  57.    
  58. 3) As in Solution 2, run 'eliminate' to remove the directory and then 'fsck'
  59.    to fix the disc.
  60.    
  61. 4) Use 'hardfix' on the disc, for example:
  62.    "hardfix ADFS::4"
  63.    It will show you what's wrong and will fix it. It should report problems
  64.    about "free chunks linked list", "unresolved links" and "wrong checksums".
  65.    Then it will ask you if you are sure to save the fixes to disc and you
  66.    should answer 'y'. After the fix you should run 'hardfix' again to see if
  67.    the problems were effectively corrected and eventually 'fsck' to see if
  68.    the map is good:
  69.    "fsck ADFS::4"
  70.    Remember that 'hardfix' is a really dangerous program and so you should
  71.    read the 'hard_help' file before trying to use it.
  72.  
  73. 5) As in Solution 4, use 'hardfix' and then 'fsck'. In this case 'hardfix'
  74.    should report problems about "corrupted maps" and "wrong checksums".
  75.    
  76.